<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="X-UA-Compatible" content="IE=10">
	<title>积分商城</title>
	<!-- Tell the browser to be responsive to screen width -->
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<!-- Bootstrap 3.3.6 -->
	<link rel="stylesheet" href="{{asset('bootstrap/css/bootstrap.min.css')}}">
	<!-- Font Awesome -->
	<link rel="stylesheet" href="{{ asset('css/font-awesome.min.css') }}">
	<!-- Ionicons -->
	<link rel="stylesheet" href="{{ asset('css/ionicons.min.css') }}">
 	<!-- Theme style -->
	<link rel="stylesheet" href="{{ asset('dist/css/AdminLTE.min.css') }}">
	<!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
	<link rel="stylesheet" href="{{ asset('dist/css/skins/_all-skins.min.css') }}">
	<!-- iCheck -->
	<link rel="stylesheet" href="{{ asset('plugins/iCheck/flat/blue.css') }}">
	<!-- Morris chart -->
	<link rel="stylesheet" href="{{ asset('plugins/morris/morris.css') }}">
	<!-- jvectormap -->
	<link rel="stylesheet" href="{{ asset('plugins/jvectormap/jquery-jvectormap-1.2.2.css') }}">
	<!-- Date Picker -->
	<link rel="stylesheet" href="{{ asset('plugins/datepicker/datepicker3.css') }}">
	<!-- Daterange picker -->
	<link rel="stylesheet" href="{{ asset('plugins/daterangepicker/daterangepicker.css') }}">
	<!-- bootstrap wysihtml5 - text editor -->
	<link rel="stylesheet" href="{{ asset('plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css') }}">
	<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
	<script src="{{ asset('client/js/html5shiv.min.js') }}"></script>
	<script src="{{ asset('client/js/respond.min.js') }}"></script>
	<script src="{{ asset('client/layer/layer.js') }}"></script>
	<script src="{{ asset('client/js/audit.js') }}"></script>
	<script src="{{ asset('client/js/send.js') }}"></script>

	<link rel="stylesheet" href="{{ asset('plugins/kindeditor/themes/default/default.css') }}">

	@yield('link')
</head>
<body class="hold-transition skin-blue sidebar-mini" style="overflow: auto">
<div class="wrapper">
<header class="main-header" style="height: 60px;">
	<!-- Logo -->
	<a href="{{ url('admin/home1') }}" class="logo" style="height:60px;">
		<!-- mini logo for sidebar mini 50x50 pixels -->
		<span class="logo-mini"><b>Y</b>X</span>
		<!-- logo for regular state and mobile devices
		<span class="logo-lg"><b><img src="{{ asset('zh/images/tital.png') }}"> </b></span>-->
		<span class="logo-lg"><img src="{{ asset('images/tlogo.png') }}" width="120"></span>
	</a>
	<!-- Header Navbar: style can be found in header.less -->
	<nav class="navbar navbar-static-top" style="min-height: 60px;">
		<!-- Sidebar toggle button-->
		<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button" style="height: 60px;">
			<span class="sr-only">Toggle navigation</span>
		</a>

		{{--<div class="navbar-custom-menu">--}}
			{{--<ul class="nav navbar-nav">--}}
				{{--<!-- User Account: style can be found in dropdown.less -->--}}
				{{--<li class="dropdown user user-menu">--}}
					{{--<a href="#" class="dropdown-toggle" data-toggle="dropdown">--}}
						{{--<img src="{{ asset('dist/img/user2-160x160.jpg') }}" class="user-image" alt="User Image">--}}
						{{--<span class="hidden-xs">{{ Session::get('username') }}</span>--}}
					{{--</a>--}}
				{{--</li>--}}
			{{--</ul>--}}
		{{--</div>--}}
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">
		<!-- Sidebar user panel -->
		<div class="user-panel" style="margin-top: 20px;margin-left: 5px;">
			<div class="pull-left image">
				<img src="{{ asset('dist/img/user2-160x160.jpg') }}" width="160px" height="160px" style="margin-top: 5px" class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p><a href="{{ url('admin/admin/'.Session::get('id')) }}">{{ Session::get('username') }}</a></p>
				<a href="{{ url('admin/logout') }}" onclick='return confirm("确定要注销吗？")?true:false'><i class="fa fa-circle text-success"></i> 注销</a>
			</div>
		</div>
		<!-- search form -->

		<div class="input-group">
			<br>
			<span class="input-group-btn">
                <br><br><br>
              </span>
		</div>
		<ul class="sidebar-menu">
			<li class="header">后台管理模块</li>
			<li class="treeview">
				<a href="{{ url('admin/home1') }}">
					<i class="fa fa-edit"></i> <span>首页</span>
					<span class="pull-right-container">
            </span>
				</a>
			</li>
			@if(Session::get('roleid') == 2 ||Session::get('roleid') == 3)
			<li class="treeview">
				<a href="{{ url('admin/server') }}">
					<i class="fa fa-edit"></i> <span>兑换服务</span>
					<span class="pull-right-container">
					</span>
				</a>
			</li>
			@endif
			@if(Session::get('roleid') != 3)
				<li class="treeview" id="user">
					<a href="#">
						<i class="fa fa-edit"></i> <span>会员管理</span>
						<span class="pull-right-container">
				  <i class="fa fa-angle-left pull-right"></i>
				</span>
					</a>
					<ul class="treeview-menu">
						<li><a href="{{ url('admin/users') }}" id="cate_create"><i class="fa fa-circle-o"></i> 会员列表</a></li>
						<li><a href="{{ url('admin/auditUsers') }}" id="cate_none"><i class="fa fa-circle-o"></i> 显示批次会员</a></li>
						@if(Session::get('roleid') == 4)
							<li><a href="{{ url('admin/userAdd') }}"><i class="fa fa-circle-o"></i> 添加会员</a></li>
						@endif
					</ul>
				</li>
			@endif
			{{--<li class="treeview">--}}
			{{--<a href="{{ url('admin/users') }}">--}}
			{{--<i class="fa fa-edit"></i> <span>用户管理</span>--}}
			{{--<span class="pull-right-container">--}}
			{{--</span>--}}
			{{--</a>--}}
			{{--</li>--}}
            {{--@if(Session::get('roleid') != 4)--}}
                {{--<li class="treeview">--}}
                    {{--<a href="{{ url('admin/orders') }}">--}}
                        {{--<i class="fa fa-edit"></i> <span>订单列表</span>--}}
                        {{--<span class="pull-right-container">--}}
                {{--</span>--}}
                    {{--</a>--}}
                {{--</li>--}}
            {{--@endif--}}
			<li class="treeview">
				<a href="#">
					@if(Session::get('roleid') ==4)
						<i class="fa fa-edit"></i> <span>订单导入</span>
					@else
						<i class="fa fa-edit"></i> <span>订单管理</span>
					@endif
					<span class="pull-right-container">
					  <i class="fa fa-angle-left pull-right"></i>
					</span>
				</a>
				<ul class="treeview-menu">
					@if(Session::Get('roleid') == 4)
						<li><a href="{{ url('admin/batch') }}"><i class="fa fa-circle-o"></i> 批量订单导入</a></li>
                        {{--<li class="treeview">--}}
                            {{--<a href="#">--}}
                                {{--<i class="fa fa-edit"></i> <span>批量订单查看</span>--}}
                                {{--<span class="pull-right-container">--}}
                                 {{--<i class="fa fa-angle-left pull-right"></i>--}}
                            {{--</span>--}}
                            {{--</a>--}}
                            {{--<ul class="treeview-menu">--}}
                                {{--<li><a href="{{ url('admin/audit1') }}"><i class="fa fa-circle-o"></i> 未兑换批量订单</a></li>--}}
                                {{--<li><a href="{{ url('admin/audit2') }}"><i class="fa fa-circle-o"></i> 已兑换批量订单</a></li>--}}
                            {{--</ul>--}}
                        {{--</li>--}}
					@endif
					@if(Session::get('roleid') ==1)
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>自助订单审核</span>
                                <span class="pull-right-container">
                                     <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="{{ url('admin/orders1') }}"><i class="fa fa-circle-o"></i> 未审核自助订单</a></li>
                                <li><a href="{{ url('admin/orders2') }}"><i class="fa fa-circle-o"></i> 已审核自助订单</a></li>
                            </ul>
                        </li>
						{{--<li><a href="{{ url('admin/orders') }}"><i class="fa fa-circle-o"></i> 自助订单审核</a></li>--}}
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>批量订单审核</span>
                                <span class="pull-right-container">
                                 <i class="fa fa-angle-left pull-right"></i>
                            </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="{{ url('admin/audit1') }}"><i class="fa fa-circle-o"></i> 未审核批量订单</a></li>
                                <li><a href="{{ url('admin/audit2') }}"><i class="fa fa-circle-o"></i> 已审核批量订单</a></li>
                            </ul>
                        </li>
						{{--<li><a href="{{ url('admin/audit') }}"><i class="fa fa-circle-o"></i> 批量订单审核</a></li>--}}
					@elseif(Session::get('roleid') == 3)
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>自助订单兑换</span>
                                <span class="pull-right-container">
                                 <i class="fa fa-angle-left pull-right"></i>
                            </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="{{ url('admin/orders1') }}"><i class="fa fa-circle-o"></i> 未兑换自助订单</a></li>
                                <li><a href="{{ url('admin/orders2') }}"><i class="fa fa-circle-o"></i> 已兑换自助订单</a></li>
                            </ul>
                        </li>
						{{--<li><a href="{{ url('admin/orders') }}"><i class="fa fa-circle-o"></i> 自助订单兑换</a></li>--}}
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>批量订单兑换</span>
                                <span class="pull-right-container">
                             <i class="fa fa-angle-left pull-right"></i>
                        </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="{{ url('admin/audit1') }}"><i class="fa fa-circle-o"></i> 未兑换批量订单</a></li>
                                <li><a href="{{ url('admin/audit2') }}"><i class="fa fa-circle-o"></i> 已兑换批量订单</a></li>
                            </ul>
                        </li>
						{{--<li><a href="{{ url('admin/audit') }}"><i class="fa fa-circle-o"></i> 批量订单兑换</a></li>--}}
					@elseif(Session::get('roleid') == 2)
						{{--<li><a href="{{ url('admin/batch') }}"><i class="fa fa-circle-o"></i> 批量订单导入</a></li>--}}
						<li class="treeview">
							<a href="#">
								<i class="fa fa-edit"></i> <span>自助订单兑换</span>
								<span class="pull-right-container">
							 <i class="fa fa-angle-left pull-right"></i>
						</span>
							</a>
							<ul class="treeview-menu">
								<li><a href="{{ url('admin/orders1') }}"><i class="fa fa-circle-o"></i> 未兑换自助订单</a></li>
								<li><a href="{{ url('admin/orders2') }}"><i class="fa fa-circle-o"></i> 已兑换自助订单</a></li>
							</ul>
						</li>
                            {{--<li><a href="{{ url('admin/orders') }}"><i class="fa fa-circle-o"></i> 自助订单兑换</a></li>--}}
						<li class="treeview">
							<a href="#">
								<i class="fa fa-edit"></i> <span>批量订单兑换</span>
								<span class="pull-right-container">
						 <i class="fa fa-angle-left pull-right"></i>
					</span>
							</a>
							<ul class="treeview-menu">
								<li><a href="{{ url('admin/audit1') }}"><i class="fa fa-circle-o"></i> 未兑换批量订单</a></li>
								<li><a href="{{ url('admin/audit2') }}"><i class="fa fa-circle-o"></i> 已兑换批量订单</a></li>
							</ul>
						</li>

					@endif

				</ul>
			</li>
			@if(Session::get('roleid') == 4)
				<li class="treeview">
					<a href="#">
						<i class="fa fa-edit"></i> <span>批量订单查看</span>
							<span class="pull-right-container">
								<i class="fa fa-angle-left pull-right"></i>
							</span>
					</a>
					<ul class="treeview-menu">
						<li><a href="{{ url('admin/audit1') }}"><i class="fa fa-circle-o"></i> 未兑换订单</a></li>
						<li><a href="{{ url('admin/audit2') }}"><i class="fa fa-circle-o"></i> 已兑换订单</a></li>
					</ul>
				</li>
			@endif
			{{--<li><a href="{{ url('admin/server') }}"><i class="fa fa-circle-o"></i> 兑换服务</a></li>--}}

			@if(Session::get('roleid') < 3)
				@if(Session::get('roleid') < 2)
					<li class="treeview">
						<a href="#">
							<i class="fa fa-edit"></i> <span>商品管理</span>
							<span class="pull-right-container">
					  <i class="fa fa-angle-left pull-right"></i>
					</span>
						</a>
						<ul class="treeview-menu">
							<li><a href="{{ url('admin/goodsList') }}"><i class="fa fa-circle-o"></i> 商品列表</a></li>
							<li><a href="{{ url('admin/goodsAdd') }}"><i class="fa fa-circle-o"></i> 添加商品</a></li>
							<li><a href="{{ url('admin/lable') }}"><i class="fa fa-circle-o"></i> 标签列表</a></li>
						</ul>
					</li>
					<li class="treeview">
						<a href="#">
							<i class="fa fa-edit"></i> <span>分类管理</span>
							<span class="pull-right-container">
					  <i class="fa fa-angle-left pull-right"></i>
					</span>
						</a>
						<ul class="treeview-menu">
							<li><a href="{{ url('admin/categoryList') }}"><i class="fa fa-circle-o"></i> 分类列表</a></li>
							<li><a href="{{ url('admin/categoryAdd') }}"><i class="fa fa-circle-o"></i> 添加分类</a></li>
						</ul>
					</li>

					{{--<li class="treeview">--}}
						{{--<a href="{{ url('admin/lable') }}">--}}
							{{--<i class="fa fa-edit"></i> <span>标签列表</span>--}}
							{{--<span class="pull-right-container">--}}
					{{--</span>--}}
						{{--</a>--}}
					{{--</li>--}}
					<li class="treeview">
						<a href="{{ url('admin/ad') }}">
							<i class="fa fa-edit"></i> <span>广告列表</span>
							<span class="pull-right-container">
					</span>
						</a>
					</li>
					<li class="treeview">
						<a href="{{ url('admin/rule') }}">
							<i class="fa fa-edit"></i> <span>兑换说明</span>
							<span class="pull-right-container">
					</span>
						</a>
					</li>
					<li class="treeview">
						<a href="#">
							<i class="fa fa-edit"></i> <span>管理员</span>
							<span class="pull-right-container">
				  <i class="fa fa-angle-left pull-right"></i>
				</span>
						</a>
						<ul class="treeview-menu">
							<li><a href="{{ url('admin/manage') }}"><i class="fa fa-circle-o"></i> 用户列表</a></li>
							<li><a href="{{ url('admin/add') }}"><i class="fa fa-circle-o"></i> 添加业务经理</a></li>
							<li><a href="{{ url('admin/addChange') }}"><i class="fa fa-circle-o"></i> 添加兑换专员</a></li>
							<li><a href="{{ url('admin/partner/add') }}"><i class="fa fa-circle-o"></i> 添加合作商</a></li>
							<li><a href="{{ url('admin/director') }}"><i class="fa fa-circle-o"></i> 添加客户经理</a></li>
						</ul>
					</li>
				@endif
				<li class="treeview">
					<a href="#">
						<i class="fa fa-edit"></i> <span>合作商管理</span>
						<span class="pull-right-container">
				  <i class="fa fa-angle-left pull-right"></i>
				</span>
					</a>
					<ul class="treeview-menu">
						<li><a href="{{ url('admin/partner') }}"><i class="fa fa-circle-o"></i>合作商列表</a></li>

						<li><a href="{{ url('admin/dlist') }}"><i class="fa fa-circle-o"></i> 客户经理列表</a></li>

					</ul>
				</li>

			@endif
			{{--<li class="active treeview">--}}
				{{--<a href="{{ url('admin/config') }}">--}}
					{{--<i class="fa fa-th"></i> <span>网站配置</span>--}}
					{{--<span class="pull-right-container">--}}
              {{--<small class="label pull-right bg-green"></small>--}}
            {{--</span>--}}
				{{--</a>--}}
			{{--</li>--}}

		</ul>
	</section>
	<!-- /.sidebar -->
</aside>

@yield('content')

<footer class="main-footer">
	<div class="pull-right hidden-xs">
		<b>Version</b> 1.0
	</div>
	<strong>Copyright &copy; 2016-2018 <a href="{{ url('/') }}">保祥·云商城</a>.</strong> All rights
	reserved.<span style="margin-left: 20px;">技术支持:<strong><a href="{{ url('/') }}" target="_blank">保祥·云商城</a></strong></span>
</footer>
</div>
<!-- jQuery 2.2.3 -->
<script src="{{ asset('plugins/jQuery/jquery-2.2.3.min.js') }}"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/js/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
{{--<script>--}}
	{{--$.widget.bridge('uibutton', $.ui.button);--}}
{{--</script>--}}
<!-- Bootstrap 3.3.6 -->
<script src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
<!-- Morris.js charts -->
<script src="/js/raphael-min.js"></script>
<script src="{{ asset('plugins/morris/morris.min.js') }}"></script>
<!-- Sparkline -->
<script src="{{ asset('plugins/sparkline/jquery.sparkline.min.js') }}"></script>
<!-- jvectormap -->
<script src="{{ asset('plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') }}"></script>
<script src="{{ asset('plugins/jvectormap/jquery-jvectormap-world-mill-en.js') }}"></script>
<!-- jQuery Knob Chart -->
<script src="{{ asset('plugins/knob/jquery.knob.js') }}"></script>
<!-- daterangepicker -->
<script src="{{ asset('js/moment.min.js') }}"></script>
<script src="{{ asset('plugins/daterangepicker/daterangepicker.js') }}"></script>
<!-- datepicker -->
<script src="{{ asset('plugins/datepicker/bootstrap-datepicker.js') }}"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="{{ asset('plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js') }}"></script>
<!-- Slimscroll -->
<script src="{{ asset('plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
<!-- FastClick -->
<script src="{{ asset('plugins/fastclick/fastclick.js') }}"></script>
<!-- AdminLTE App -->
<script src="{{ asset('dist/js/app.min.js') }}"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
{{--<script src="{{ asset('dist/js/pages/dashboard.js') }}"></script>--}}
<!-- AdminLTE for demo purposes -->
<script src="{{ asset('dist/js/demo.js') }}"></script>

<script charset="utf-8" src="{{ asset('plugins/kindeditor/kindeditor-all.js') }}"></script>
<script charset="utf-8" src="{{ asset('plugins/kindeditor/lang/zh-CN.js') }}"></script>
</body>
</html>
<script>
	var ac_article = null;
	var ac_case = null;
	var ac_user = null;
	var path = window.location.pathname;
	var active = path.substring(8,12);
	switch (active)
	{
		case 'arti':
			$('#article').addClass('active');
			if(active.indexOf('create'))
			{
//                alert('create');
			}
			else
			{
//                alert('/');
			}
			break;
		case 'cate':
			$('#article').addClass('active');
			break;
		case 'case':
			$('#case').addClass('active');
			break;
		case 'user':
			$('#user').addClass('active');
			break;
	}

</script>
